const { head } = require("request-promise")

const arr=[1,2,3,4,5,6,7,8,9]


let head={

}
const index=10
let code=head
for(let i=0;i<index &&node;i++)
    {
        node=node.next
    }